import { requestClient as request } from '../request'

// 获取退料列表
export function getSendRefundRecordList(params: any) {
  return request.get('/admin/SendRefundRecord/index', params)
}

// 获取退料详情
export function getSendRefundRecordInfo(params: any) {
  return request.get('/admin/SendRefundRecord/edit', params)
}

// 新增退料
export function doSendRefundRecordAdd(data: any) {
  return request.post('/admin//SendRefundRecord/add', data)
}

// 编辑退料
export function doSendRefundRecordEdit(data: any) {
  return request.post('/admin/SendRefundRecord/edit', data)
}

// 删除退料
export function doSendRefundRecordDelete(data: any) {
  return request.post('/admin/SendRefundRecord/del', data)
}

// 审核退料
export function doSendRefundRecordApproval(data: any) {
  return request.post('/admin/SendRefundRecord/approval', data)
}

// 反审退料
export function doSendRefundRecordAgainst(data: any) {
  return request.post('/admin/SendRefundRecord/against', data)
}
